package com.study.apacheutil;

import org.assertj.core.util.Lists;
import org.junit.jupiter.api.Test;

import java.util.ArrayList;

/**
 * @author zhuzi
 * 2024/5/21 11:43
 */
public class SteDemo {
    private static String jsonStr = "{\n" + "    \"text\":\"Hello World\",\n" + "    \"x\":0,\n" + "    \"y\":0,\n" + "    \"width\":256,\n" + "    \"height\":35,\n" + "    \"font\":{\n" + "        \"name\":\"隶书\",\n" + "        \"size\":\"18\",\n" + "        \"style\":{\n" + "            \"i\":0,\n" + "            \"b\":0,\n" + "            \"u\":0\n" + "        },\n" + "        \"color\":\"0xFFFFFFFF\"\n" + "    },\n" + "    \"bgcolor\":\"0xFF000000\",\n" + "    \"scroll\":{\n" + "        \"dir\":\"left\",\n" + "        \"isconnected\":0,\n" + "        \"speed\":60\n" + "    }\n" + "}";

    public static void printStrings(String... strings) {
        System.out.println(strings.getClass());
        ArrayList<String> list = Lists.newArrayList();
     
        for (String str : strings) {
            System.out.println(str);
        }
    }

    @Test
    public void print() {
        System.out.println(jsonStr);
    }

    @Test
    public void strs() {
        printStrings("Hello");
        printStrings("Hello", "World");
        printStrings("Hello", "World", "Java");
    }
}
